package com.compass.doctor.utils;

import com.github.mikephil.charting.formatter.ValueFormatter;

import java.text.DecimalFormat;

/**
 * Description：
 * Date:2023/12/13 14:44
 */
public class PieChartValueFormatter extends ValueFormatter {

    private final DecimalFormat mFormat;

    public PieChartValueFormatter() {
        mFormat = new DecimalFormat("###,###,###,##");
    }

    @Override
    public String getFormattedValue(float value) {
        return mFormat.format(value);
    }
}
